import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './assets/css/globle.css'
import './plugins/element.js'
import './router/permission.js'
import './util/findToken.js'
import Pagination from './components/Pagination'
import moment from 'moment'
import axios from 'axios'
axios.interceptors.request.use(config=>{
  let token = JSON.parse(localStorage.getItem('token'));
  config.headers.Authorization = `Bearer ${token}`;
  return config;
})
Vue.component(Pagination.name,Pagination);
Vue.config.productionTip = false
Vue.prototype.$moment = moment;

moment.locale('zh-cn');
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
